echo off

set SOLUTION_NAME=TennisSiteDefinition.wsp

REM Your Web Application Url
set URL=http://server:port/

echo %time% Adding Solution...
"c:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN\STSADM.EXE" -o addsolution -filename %SOLUTION_NAME%

echo %time% Deploying solution...
"c:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN\STSADM.EXE" -o deploysolution -name %SOLUTION_NAME% -immediate -allowGacDeployment

if %errorlevel% NEQ 0 (
goto :FAIL
)

custom_timeout 20
echo SUCCESS!
goto :END

:FAIL
echo Operation failed :(
goto :END

:END

pause